package com.zis.system.dao;

import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import com.zis.system.model.UserRole;

import java.util.List;

@Repository
@SqlResource(value = "system.userRole")
public interface UserRoleDao extends BaseMapper<UserRole> {

    @SqlStatement(params = "userId")
    List<UserRole> findByUserId(String userId);

    @SqlStatement(params = "userId")
    int deleteByUserId(String userId);
}
